package com.zdj.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zdj
 * @date 2023-02-17 10:46
 */
@Controller
public class RecipeController {

    @RequestMapping(
            value = "/api/quantities",
            method = RequestMethod.GET,
            params = {"recipe"}
    )
    @ResponseBody
    public String getQuantities(
            @RequestParam(value = "recipe") String recipe
    ) {
        System.out.println(recipe);
        return "1";
    }

}
